package cn.gzjp.modules.gas.entity;

import org.hibernate.validator.constraints.Length;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import cn.gzjp.common.persistence.DataEntity;
import cn.gzjp.common.utils.excel.annotation.ExcelField;

/**
 * 油品类别关联Entity
 * @author zengcp
 * @version 2018-03-05
 */
public class GasCategory extends DataEntity<GasCategory> {
	
	private static final long serialVersionUID = 1L;
	private String stationId;		// 加油站id
	private String stationName;  //加油站名称
	private String name;		// 油品名称
	private BigDecimal price;		// 默认价格
	private Date executeTime;		// 调价生效时间
	private BigDecimal newPrice;		// 调整后单价
	private BigDecimal discount;		// 当前优惠(元)
	
	public GasCategory() {
		super();
	}

	public GasCategory(String id){
		super(id);
	}

	public String getStationId() {
		return stationId;
	}

	public void setStationId(String stationId) {
		this.stationId = stationId;
	}

	public String getStationName() {
		return stationName;
	}

	public void setStationName(String stationName) {
		this.stationName = stationName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public Date getExecuteTime() {
		return executeTime;
	}

	public void setExecuteTime(Date executeTime) {
		this.executeTime = executeTime;
	}

	public BigDecimal getNewPrice() {
		return newPrice;
	}

	public void setNewPrice(BigDecimal newPrice) {
		this.newPrice = newPrice;
	}

	public BigDecimal getDiscount() {
		return discount;
	}

	public void setDiscount(BigDecimal discount) {
		this.discount = discount;
	}
}